package fi.foyt.cs.persistence.domainmodel.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public class UserFriend {

  public Key getId() {
    return id;
  }
  
  public Long getUserId() {
    return userId;
  }
  
  public void setUserId(Long userId) {
    this.userId = userId;
  }
  
  public Long getFriendId() {
    return friendId;
  }
  
  public void setFriendId(Long friendId) {
    this.friendId = friendId;
  }
  
  public Boolean getConfirmed() {
    return confirmed;
  }
  
  public void setConfirmed(Boolean confirmed) {
    this.confirmed = confirmed;
  }
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  
  @Column (nullable = false)
  private Long userId;
  
  @Column (nullable = false)
  private Long friendId;

  @Column (nullable = false)
  private Boolean confirmed;
}
